from django.db import models

# Create your models here.
class Teacher(models.Model):
    name = models.CharField(max_length=100)
    def __str__(self):
        return self.name
    class Meta:
        verbose_name = '教师'

class clas(models.Model):
    bh = models.CharField(max_length=100)
    name = models.CharField(max_length=100)
    clasty = models.CharField(max_length=100)
    teacher = models.ForeignKey(Teacher, on_delete=models.CASCADE)
    status = models.BooleanField(default=True)
    def __str__(self):
        return self.name
    class Meta:
        verbose_name = '课程'